﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Innoapps.FileTransfer.Models
{
    public class ActionResult
    {




        #region Constructors
        public ActionResult(string Action, string Result, string Message)
        {
            this.Id = Guid.NewGuid();
            this.MachineName = Environment.MachineName;
            this.UserName = Environment.UserName;
            this.Message = Message;
            this.Result = Result;
            this.Action = Action;
        }
        #endregion

        #region Properties

        [XmlAttribute("Id")]
        public Guid Id { get; set; }
        [XmlAttribute("MachineName")]
        public string MachineName { get; set; }
        [XmlAttribute("UserName")]
        public string UserName { get; set; }
        [XmlAttribute("DateTime")]
        public DateTime DateTime { get; set; }
        [XmlAttribute("Result")]
        public string Result { get; set; }
        [XmlAttribute("Action")]
        public string Action { get; set; }
        [XmlText]
        public string Message { get; set; }

        #endregion

    }
}
